using SheLife.Domain.Common;

namespace SheLife.Domain.Entities
{
    /// <summary>
    /// 成长记录实体类
    /// </summary>
    public class GrowthRecord : BaseEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 记录日期
        /// </summary>
        public DateTime RecordDate { get; set; } = DateTime.UtcNow;

        /// <summary>
        /// 类别
        /// </summary>
        public string Category { get; set; } = string.Empty;

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; } = string.Empty;

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; } = string.Empty;

        /// <summary>
        /// 评分（1-5分）
        /// </summary>
        public int? Score { get; set; }

        /// <summary>
        /// 图片URL
        /// </summary>
        public string? ImageUrl { get; set; }

        /// <summary>
        /// 标签，多个标签用逗号分隔
        /// </summary>
        public string Tags { get; set; } = string.Empty;

        /// <summary>
        /// 是否公开
        /// </summary>
        public bool IsPublic { get; set; } = false;

        // 导航属性
        public virtual SystemUser? User { get; set; }
    }
}